package com.sara.service;

import com.github.pagehelper.PageInfo;
import com.sara.entity.Order;
import com.sara.entity.ServiceType;
import com.sara.vo.OrderVo;

import java.util.List;
import java.util.Map;

/**
 * @author Wayne
 * @date 2019/1/11
 */
public interface OrderService {
    List<ServiceType> findAllServiceType();

    void saveOrder(OrderVo orderVo, Integer id);

    /**
     * 根据条件去查询订单
     * @param queryMap 条件集合queryMap
     * @return 订单分页
     */
    PageInfo<Order> findPageByParam(Map<String,Object> queryMap);

    Order findOrderById(Integer id);

    ServiceType findServiceTypeById(Integer serviceTypeId);

    Map<String,Object> findEditByOrderId(Integer id);

    /**
     * 更新订单数据，修改订单
     * @param orderVo
     */
    void editOrder(OrderVo orderVo);

    void deleteOrder(Integer id);

    void transOrder(Integer id, String orderStateTrans);
}
